package megamu.mesh;

import java.util.ArrayList;

import com.jellyfishumbrella.GL.Vertex;
import com.jellyfishumbrella.util.EqualsUtil;
import com.jellyfishumbrella.util.HashCodeUtil;

public class Corner extends Vertex {
	public boolean				isBorder	= false;
	public boolean				isWater		= false;
	public boolean				isCoast		= false;
	public ArrayList<Region>	regions;
	public ArrayList<Corner>	neighbors;
	public boolean				checked		= false;

	public Corner(double X, double Y, double Z) {
		super(X, Y, Z);
		regions = new ArrayList<Region>();
		neighbors = new ArrayList<Corner>();
	}

	public void addRegion(Region addMe) {
		if (!regions.contains(addMe)) {
			regions.add(addMe);
		}
	}

	public String toString() {
		return super.toString();
	}
}
